import 'package:kkhousekeep/generated/json/base/json_convert_content.dart';
import 'package:kkhousekeep/models/house_authentication_list_entity.dart';

HouseAuthenticationListEntity $HouseAuthenticationListEntityFromJson(Map<String, dynamic> json) {
	final HouseAuthenticationListEntity houseAuthenticationListEntity = HouseAuthenticationListEntity();
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		houseAuthenticationListEntity.code = code;
	}
	final HouseAuthenticationListObj? obj = jsonConvert.convert<HouseAuthenticationListObj>(json['obj']);
	if (obj != null) {
		houseAuthenticationListEntity.obj = obj;
	}
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		houseAuthenticationListEntity.msg = msg;
	}
	return houseAuthenticationListEntity;
}

Map<String, dynamic> $HouseAuthenticationListEntityToJson(HouseAuthenticationListEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['code'] = entity.code;
	data['obj'] = entity.obj.toJson();
	data['msg'] = entity.msg;
	return data;
}

HouseAuthenticationListObj $HouseAuthenticationListObjFromJson(Map<String, dynamic> json) {
	final HouseAuthenticationListObj houseAuthenticationListObj = HouseAuthenticationListObj();
	final List<HouseAuthenticationListObjList>? list = jsonConvert.convertListNotNull<HouseAuthenticationListObjList>(json['list']);
	if (list != null) {
		houseAuthenticationListObj.list = list;
	}
	return houseAuthenticationListObj;
}

Map<String, dynamic> $HouseAuthenticationListObjToJson(HouseAuthenticationListObj entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['list'] =  entity.list.map((v) => v.toJson()).toList();
	return data;
}

HouseAuthenticationListObjList $HouseAuthenticationListObjListFromJson(Map<String, dynamic> json) {
	final HouseAuthenticationListObjList houseAuthenticationListObjList = HouseAuthenticationListObjList();
	final int? id = jsonConvert.convert<int>(json['id']);
	if (id != null) {
		houseAuthenticationListObjList.id = id;
	}
	final String? name = jsonConvert.convert<String>(json['name']);
	if (name != null) {
		houseAuthenticationListObjList.name = name;
	}
	final String? phone = jsonConvert.convert<String>(json['phone']);
	if (phone != null) {
		houseAuthenticationListObjList.phone = phone;
	}
	final String? iDCardType = jsonConvert.convert<String>(json['iDCardType']);
	if (iDCardType != null) {
		houseAuthenticationListObjList.iDCardType = iDCardType;
	}
	final String? iDCard = jsonConvert.convert<String>(json['iDCard']);
	if (iDCard != null) {
		houseAuthenticationListObjList.iDCard = iDCard;
	}
	final String? enterTime = jsonConvert.convert<String>(json['enterTime']);
	if (enterTime != null) {
		houseAuthenticationListObjList.enterTime = enterTime;
	}
	final String? image = jsonConvert.convert<String>(json['image']);
	if (image != null) {
		houseAuthenticationListObjList.image = image;
	}
	final int? roomID = jsonConvert.convert<int>(json['roomID']);
	if (roomID != null) {
		houseAuthenticationListObjList.roomID = roomID;
	}
	final int? checkStatus = jsonConvert.convert<int>(json['checkStatus']);
	if (checkStatus != null) {
		houseAuthenticationListObjList.checkStatus = checkStatus;
	}
	final String? roomName = jsonConvert.convert<String>(json['roomName']);
	if (roomName != null) {
		houseAuthenticationListObjList.roomName = roomName;
	}
	final String? createTime = jsonConvert.convert<String>(json['createTime']);
	if (createTime != null) {
		houseAuthenticationListObjList.createTime = createTime;
	}
	final String? checkTime = jsonConvert.convert<String>(json['checkTime']);
	if (checkTime != null) {
		houseAuthenticationListObjList.checkTime = checkTime;
	}
	final String? updateTime = jsonConvert.convert<String>(json['updateTime']);
	if (updateTime != null) {
		houseAuthenticationListObjList.updateTime = updateTime;
	}
	return houseAuthenticationListObjList;
}

Map<String, dynamic> $HouseAuthenticationListObjListToJson(HouseAuthenticationListObjList entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['name'] = entity.name;
	data['phone'] = entity.phone;
	data['iDCardType'] = entity.iDCardType;
	data['iDCard'] = entity.iDCard;
	data['enterTime'] = entity.enterTime;
	data['image'] = entity.image;
	data['roomID'] = entity.roomID;
	data['checkStatus'] = entity.checkStatus;
	data['roomName'] = entity.roomName;
	data['createTime'] = entity.createTime;
	data['checkTime'] = entity.checkTime;
	data['updateTime'] = entity.updateTime;
	return data;
}